package cn.stylefeng.roses.kernel.sys.modular.user.service.impl;


import cn.stylefeng.roses.kernel.sys.modular.user.entity.SysUserOrgData;
import cn.stylefeng.roses.kernel.sys.modular.user.mapper.SysUserOrgDataMapper;
import cn.stylefeng.roses.kernel.sys.modular.user.service.SysUserOrgDataService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysUserOrgDataServiceImpl extends ServiceImpl<SysUserOrgDataMapper, SysUserOrgData> implements SysUserOrgDataService {
    @Resource
    SysUserOrgDataMapper sysUserOrgDataMapper;
    @Override
    public List<Long> getOrgDataCodeList(Long userId) {
        return sysUserOrgDataMapper.getOrgDataCodeList(userId);
    }

    @Override
    public List<String> getOrgCodeList(Long userId) {
        return sysUserOrgDataMapper.getOrgCodeList(userId);
    }
}
